package com.freecloud.javabasics.design.entity.car;

import com.freecloud.javabasics.design.entity.Manufacturers;
import com.freecloud.javabasics.design.entity.Product;

import java.io.Serializable;

/**
 * @Author: maomao
 * @Date: 2019-10-30 08:57
 */
public abstract class Car implements Product,Cloneable, Serializable {
    @Override
    public String getName(){
        return "汽车";
    }

    public abstract Manufacturers getManufacturers();

//    @Override
//    public Object clone() throws CloneNotSupportedException {
//        return super.clone();
//    }


    public void println(){

        System.out.println(this.getName());
        System.out.println(this.getManufacturers().getName());
    }
}
